package cn.com.nes.site.entity.dto.patrolPlan;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("patrol_plan_equipment_record")
public class PatrolPlanEquipmentRecord {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 任务id
     */
    @TableField(value ="task_id")
    private String taskId;

    /**
     * 计划id
     */
    @TableField(value = "patrol_plan_id")
    private String patrolPlanId;

    /**
     * 设备id
     */
    @TableField(value = "sb_id")
    private String sbId;

    /**
     * 行政区划代码
     */
    private String xzqhdm;

    /**
     * 记录
     */
    @TableField(value = "result_desc")
    private String resultDesc;
    /**
     * 检查结果: 1表示通过，0表示未通过
     */
    private Byte result;
    /**
     * 人员id
     */
    @TableField(value = "user_id")
    private Long userId;


    /**
     * 确认时间
     */
    private Date time;


    /**
     * 状态:   0 待巡检 1已巡检 2 用户确认  3 管理员审核
     */
    private Byte status;

    /**
     * 上次记录状态:   0 待巡检 1已巡检 2 用户确认  3 管理员审核
     */
    @TableField(value = "last_status")
    private Byte lastStatus;




    /**
     * 审核意见
     */
    @TableField(value = "is_live")
    private Byte isLive;

    @TableField(value = "is_use")
    private Byte isUse;

    /**
     * 0是 1否
     * 是否出保
     */
    @TableField(value = "is_insured")
    private Byte isInsured;
    /**
     * 质保到期日
     */
    @TableField(value = "warranty_expiry_date")
    private String warrantyExpiryDate;

    /**
     * 现场图片
     */
    private String images;

    /**
     * 用户签字图片
     */
    @TableField(value = "sign_image")
    private String signImage;

    private String record;

    /**
     * 是否最新:   1是，0不是
     */
    @TableField(value = "is_new")
    private Byte isNew;

    /**
     * 逻辑删除:   1表示删除，0表示未删除
     */
    @TableField(value = "is_delete")
    private Byte isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Long gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 来源 判断是否由小程序添加
     */
    private String source;

    /**
     * 经度
     */
    private Double longitude;

    /**
     * 纬度
     */
    private Double latitude;

    private Integer damageLevel;

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getPatrolPlanId() {
        return patrolPlanId;
    }

    public void setPatrolPlanId(String patrolPlanId) {
        this.patrolPlanId = patrolPlanId;
    }

    public String getSbId() {
        return sbId;
    }

    public void setSbId(String sbId) {
        this.sbId = sbId;
    }

    public String getXzqhdm() {
        return xzqhdm;
    }

    public void setXzqhdm(String xzqhdm) {
        this.xzqhdm = xzqhdm;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getIsLive() {
        return isLive;
    }

    public void setIsLive(Byte isLive) {
        this.isLive = isLive;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getSignImage() {
        return signImage;
    }

    public void setSignImage(String signImage) {
        this.signImage = signImage;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public Byte getIsNew() {
        return isNew;
    }

    public void setIsNew(Byte isNew) {
        this.isNew = isNew;
    }

    public Byte getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    public Long getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public Byte getResult() {
        return result;
    }

    public void setResult(Byte result) {
        this.result = result;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Byte getLastStatus() {
        return lastStatus;
    }

    public void setLastStatus(Byte lastStatus) {
        this.lastStatus = lastStatus;
    }

    public Byte getIsUse() {
        return isUse;
    }

    public void setIsUse(Byte isUse) {
        this.isUse = isUse;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Byte getIsInsured() {
        return isInsured;
    }

    public void setIsInsured(Byte isInsured) {
        this.isInsured = isInsured;
    }

    public String getWarrantyExpiryDate() {
        return warrantyExpiryDate;
    }

    public void setWarrantyExpiryDate(String warrantyExpiryDate) {
        this.warrantyExpiryDate = warrantyExpiryDate;
    }

    public Integer getDamageLevel() {
        return damageLevel;
    }

    public void setDamageLevel(Integer damageLevel) {
        this.damageLevel = damageLevel;
    }
}